Stripe\HttpClient\CurlClient A

Total Complexity 74
Dependencies 8
Dependents 1
Total lines 531
Lines of code 271
Logical lines of code 155
Comment lines 142
Methods 26
Properties 10

Methods 26

Method Rating Maintainability Complexity Lines of code
request()
B
39 17 59
executeRequestWithRetries()
A
42 9 54
shouldRetry()
A
53 9 26
handleCurlError()
S
50 7 30
sleepTime()
S
58 4 13
hasHeader()
S
65 3 8
resetCurlHandle()
S
69 3 7
__construct()
S
70 2 6
closeCurlHandle()
S
71 2 6
instance()
S
71 2 6
getRequestStatusCallback()
S
82 1 3
setRequestStatusCallback()
S
81 1 3
setTimeout()
S
75 1 4
setEnableHttp2()
S
81 1 3
getTimeout()
S
82 1 3
getConnectTimeout()
S
82 1 3
getEnableHttp2()
S
82 1 3
setEnablePersistentConnections()
S
81 1 3
getEnablePersistentConnections()
S
82 1 3
getUserAgentInfo()
S
82 1 3
getDefaultOptions()
S
82 1 3
initCurlHandle()
S
76 1 4
initUserAgentInfo()
S
68 1 7
__destruct()
S
82 1 3
canSafelyUseHttp2()
S
74 1 4
setConnectTimeout()
S
75 1 4